/*
 * Copyright (c) 2010 by Aleksey Zhukov
 * Licensed under the Apache License, Version 2.0 (the "License")
 */

package ru.listfunc4j;

import java.lang.instrument.ClassDefinition;
import java.lang.instrument.Instrumentation;

/**
 * User: J0k3r
 * Date: 24.10.2010
 * Time: 17:07:21
 */
public class Agent {
    private static Instrumentation instrumentation;

    public static void agentmain(String agentArgs, Instrumentation inst) {
        Agent.instrumentation = inst;
    }

    public static void redefineClasses(ClassDefinition... defs) throws Exception {
        Agent.instrumentation.redefineClasses(defs);
    }
}